package zhr.chapter5.six;

public class Example5_6 {
    public static void main(String[] args) {
        Cat cat = new Cat("Cat","white");
        Dog dog = new Dog("Dog","black");
        System.out.println(cat.getName());
        System.out.println(dog.getName());
        Raiser mike = new Raiser("Mike");
        mike.feed(cat);
        mike.feed(dog);
    }
}
